package com.zhiche.lisa.bms.dao.model.bill;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 账单明细
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-12
 */
@TableName("lisa_bill_detail")
public class BillDetail extends Model<BillDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 账单ID
     */
	@TableField("bill_id")
	private Long billId;
    /**
     * 对应应收账款id
     */
	@TableField("fee_id")
	private Long feeId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getBillId() {
		return billId;
	}

	public void setBillId(Long billId) {
		this.billId = billId;
	}

	public Long getFeeId() {
		return feeId;
	}

	public void setFeeId(Long feeId) {
		this.feeId = feeId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "BillDetail{" +
			", id=" + id +
			", billId=" + billId +
			", feeId=" + feeId +
			"}";
	}
	public BillDetail() {
	}

	public BillDetail(Long id, Long billId, Long feeId) {
		this.id = id;
		this.billId = billId;
		this.feeId = feeId;
	}
}
